package com.spark.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.common.annotation.Dict;
import com.spark.common.annotation.query.Query;
import com.spark.common.annotation.valid.Password;
import com.spark.common.constants.QueryConstants;
import com.spark.common.constants.RegexConstants;
import com.spark.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.*;

/**
* 系统角色权限
*
* @author LYCHEE
* @date 2025/02/18 10:17
*/
@Data
@TableName("sys_role_permission")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysRolePermission extends BaseEntity {

    /**
     * 角色ID
     */
    @Query
    @NotBlank(message = "角色ID不能为空")
    private java.lang.String roleId;

    /**
     * 权限ID
     */
    @Query
    @NotBlank(message = "权限ID不能为空")
    private java.lang.String permissionId;

}
